package com.hrms.doctor.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


public class MessageVo implements Serializable {
    private Short key;//0:医生 1:患者
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public MessageVo() {
    }

    public MessageVo(Short key, String content, LocalDateTime createTime) {
        this.key = key;
        this.content = content;
        this.createTime = createTime;
    }

    public Short getKey() {
        return key;
    }

    public void setKey(Short key) {
        this.key = key;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "MessageVo{" +
                "key=" + key +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
